<?php
App::uses('CrawlManager', 'Model');
App::uses('ArticlesFactory', 'Model');
Class CrawlManagerTest extends CakeTestCase {
	public function setUp(){
		parent::setUp();
		$this->CrawlManager = ClassRegistry::init('CrawlManager');
	}

	public function testFetchWithValidUrls(){
		$urls = array(
			"http://rss.rssad.jp/rss/itmatmarkit/rss.xml",
			"http://itpro.nikkeibp.co.jp/rss/ittrend.rdf"
		);
		$articles = $this->CrawlManager->fetch($urls);
		$this->assertNotEmpty($articles);
	}






	

}
?>
